package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author Admin
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "commun_comment")
@ApiModel(value = "CommunComment对象",description = "聊天记录表")
public class CommunComment {

    @TableId("id")
    @ApiModelProperty("id")
    private String id;

    @TableField("number_id")
    @ApiModelProperty("评论用户id")
    private String numberId;

    @TableField("number_name")
    @ApiModelProperty("评论用户昵称")
    private String numberName;

    @TableField("room_id")
    @ApiModelProperty("直播间id")
    private String roomId;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField("content")
    @ApiModelProperty("内容")
    private String content;

}
